Xbasic

A5DNS::ManagerEncryptConnectionString Method

Syntax

.EncryptConnectionString as A5Storage::CallResult (BYREF EncryptedText as C, ConnectionStringIn as C [, PassphraseIn as C])

Arguments

BYREF EncryptedTextCharacter

A variable into which the encrypted connection string should be returned.

ConnectionStringInCharacter

The connection string to encrypt.

PassphraseInCharacter

A passphrase to use when encrypting (optional).

Returns

resultA5Storage::CallResult

A CallResult object with properties that describe any error returned. Check the Success property to see if the function succeeded.

Description

EncryptConnectionString encrypts a connection string using a passphrase (optional).

Example

' Call the static function A5DNS::Manager::EncryptConnectionString()

dim decrypted as c = "decrypted connection string"
dim encrypted as c 
dim passphrase as c = "secret"
?A5DNS::Manager::EncryptConnectionString(encrypted, decrypted, passphrase)